Skip to content

Comments

Add support for *.diff#574

Merged
asottile merged 1 commit intopre-commit:mainfrom
petamas:add-diff
Feb 20, 2026
Merged

Add support for *.diff#574
asottile merged 1 commit intopre-commit:mainfrom
petamas:add-diff

Conversation

@petamas
Copy link
Contributor

@petamas petamas commented Feb 10, 2026

identify already supports *.patch, assigning it a diff tag. However, some people use *.diff as an extension instead of *.patch.

As far as I know, both extensions may contain various diff formats, and there's no official distinction between the two.

Stack Overflow answer saying the same: https://stackoverflow.com/a/4215933

@asottile asottile merged commit 50e032f into pre-commit:main Feb 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants